<%@page import="java.util.ArrayList"%>
<%@page import="com.jlrdb.model.CellularBroadcast"%>
<html>
<head>
<link rel="stylesheet" type="text/css" href="/css/styledform.css">
<title>Update Cellular Broadcast</title>
</head>
<body>
	<h2>Update Cellular Data</h2>
	<%
		CellularBroadcast cellularBroadcast = (CellularBroadcast) request.getAttribute("cellularBroadcast");
	%>
	<form name="updateCellularBroadcastForm" onsubmit="return updateValidation()"
		action="/CellularBroadcastServlet" target="_self">
		<input type="hidden" name="action" value="updateCellularBroadcast">
		<input type="hidden" name="country"
			value="<%=cellularBroadcast.getCountry()%>">
		<input type="hidden" name="broadcastId"
			value="<%=cellularBroadcast.getBroadcast_Id()%>">
<div id="error">
			<font>* marked fields are mandatory.</font>&nbsp;&nbsp;&nbsp;&nbsp;<font id="id1"></font>
		</div>
		<table style="float: left; position: relative; margin-right: auto;">

			<tr>
				<th>Geographic Region</th>
				<td><%=cellularBroadcast.getGeographic_Region()%></td>
			</tr>
			<tr>
				<th>Country:</th>
				<td><%=cellularBroadcast.getCountry()%></td>
			</tr>
			<tr>
				<th><font color="red">*</font>Cellular Technology:</th>
				<td><select name="cellular_technology">
						<option value="GSM"
							<%if (cellularBroadcast.getCellular_Technology().equals("GSM")) {
				out.println("selected");
			}%>>GSM</option>
						<option value="CDMA"
							<%if (cellularBroadcast.getCellular_Technology().equals("CDMA")) {
				out.println("selected");
			}%>>CDMA</option>
						<option value="4G"
							<%if (cellularBroadcast.getCellular_Technology().equals("4G")) {
				out.println("selected");
			}%>>4G</option>
				</select></td>
			</tr>
			<tr>
				<th>Data Enhancement Technology:</th>
				<td><input name="data_enhancement_technology" type="text"
					size="26"
					value="<%=cellularBroadcast.getData_Enhancement_Technology()%>"></td>
			</tr>
			<tr>
				<th>Information Transfer Rate:</th>
				<td><input name="information_transfer_rate:" type="text"
					size="26"
					value="<%=cellularBroadcast.getInformation_Transfer_Rate()%>"></td>
			</tr>
			<tr>
				<th>Start Date:</th>
				<td><input name="start_date" size="9" placeholder="start"
					value="<%=cellularBroadcast.getStart_Date()%>"></td>
			</tr>
			<tr>
				<th>Completion Date:</th>
				<td><input name="end_date" type="text" size="9"
					placeholder="Completion"
					value="<%=cellularBroadcast.getEnd_Date()%>"></td>
			</tr>
			<tr>
				<th>Frequency Spectrum MHz:</th>
				<td><input name="frequency_spectrum" type="text" size="26"
					value="<%=cellularBroadcast.getFrequency_Spectrum()%>"></td>
			</tr>
			<tr>
				<th>Market Penetration:</th>
				<td><input name="market_penetration" type="text" size="26"
					value="<%=cellularBroadcast.getMarket_Penetration()%>"></td>
			</tr>
			<tr>
				<th>Operators:</th>
				<td><textarea rows="3" cols="21" name="operators"><%=cellularBroadcast.getOperators()%></textarea></td>
			</tr>
			<tr>
				<th>Source of reference:</th>
				<td><textarea rows="3" cols="21" name="source_of_reference"><%=cellularBroadcast.getSource_Of_Reference()%></textarea></td>
			</tr>
			<tr>
				<th>Additional Contacts:</th>
				<td><textarea rows="3" cols="21" name="aditional_contacts"><%=cellularBroadcast.getAditional_Contacts()%></textarea></td>
			</tr>
			<tr>
				<th>Industry Regulators:</th>
				<td><textarea rows="3" cols="21" name="industry_regulators"><%=cellularBroadcast.getIndustry_Regulators()%></textarea></td>
			</tr>
		</table>
		<table style="position: relative;">
			<tr>
				<th><font color="red">*</font>Market Confirmation:</th>
				<td><select name="market_confirmation">
						<option value="Agree"
							<%if (cellularBroadcast.getMarket_Confirmation().equals("Agree")) {
				out.println("selected");
			}%>>Agree</option>
						<option value="No Reply"
							<%if (cellularBroadcast.getMarket_Confirmation().equals("No Reply")) {
				out.println("selected");
			}%>>No
							Reply</option>
				</select></td>
			</tr>
			<tr>
				<th>Notes/Remarks/Forecast:</th>
				<td><textarea rows="3" cols="21" name="notes"><%=cellularBroadcast.getNotes()%></textarea></td>
			</tr>
			<tr>
				<th>Drawbacks and Plan to overcome:</th>
				<td><textarea rows="3" cols="21" name="problems"><%=cellularBroadcast.getProblems()%></textarea></td>
			</tr>
		</table>
		<div style="clear: both;"></div>
		<input type="submit" name="Update" value="update">&nbsp;&nbsp;&nbsp;<input type="button" name="Cancel" value="Cancel" onclick="self.close()">
	</form>
</body>
</html>